// 对外暴露配置路由（常量路由）
export const constantRoute = [
    {
        // 登录
        path: '/login',
        component: () => import('@/views/Login/index.vue'),
        name: 'login',
        meta: {
            title: '登录',
            hidden: true
        }
    },
    {
        // 注册
        path: '/register',
        component: () => import('@/views/Register/index.vue'),
        name: 'register',
        meta: {
            title: '注册',
            hidden: true
        }
    },
    {
        // 首页
        path: '/',
        component: () => import('@/views/Home/index.vue'),
        name: 'home',
        meta: {
            title: '首页',
            hidden: false
        }
    },
    {
        path: '/detail',
        component: () => import('@/views/Detail/index.vue'),
        name: 'detail',
        meta: {
            title: '详情',
            hidden: false
        }
    },
    {
        // 404
        path: '/404',
        component: () => import('@/views/404/index.vue'),
        name: '404',
        meta: {
            title: '404',
            hidden: false
        }
    },
    {
        path: '/:pathMatch(.*)*',
        redirect: '/404',
        name: 'Any',
        meta: {
            title: '任意路由',
            hidden: true
        }
    }
]